<?php
class UserModel extends Model{
	public $table="user";
	public $validate=array(
	
	array('password','nonull','密码不能为空',2,3)

	);
	public function addData(){
		if(!$this->create())return false;
		$this->data['password']=md5($_POST['password']);
		return $this->add();
	}
	
}
	?>